from rest_framework import serializers
from .models import file_upload



class FileDetailSerializer(serializers.ModelSerializer):
    '''文件列表'''

    create_time = serializers.DateTimeField(format="%Y-%m-%d %H:%M:%S",help_text="生成日期",label="生成日期")


    class Meta:
        model = file_upload
        fields = "__all__"